<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    
    var arr=[] 
    for(var i = 15;i<=50;i+=5){
        arr.push(i)
    }
    console.log(arr)
    console.log(arr.length-1)
    var dd =arr.length-1
    alert("需要"+dd+"次")
</script>   